<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
      <jsp:include page="head.jsp"></jsp:include>
  </head>
  <body>
    <div id="dcWrap">
        <jsp:include page="rightTop.jsp"></jsp:include>
        <jsp:include page="menu.jsp"></jsp:include>
        <!-- 当前位置 -->
        <div id="urHere">快递管理系统<b>></b><strong>编辑快递</strong> </div> <div
          id="manager" class="mainBox"
          style="height:auto!important;height:550px;min-height:550px;">
          <h3><a href="index.html" class="actionBtn">返回首页</a>编辑快递</h3>

          <form action="/delivery/delivery/updateDelivery" method="post">
            <!-- 修改的参照id-->
            <input type="hidden" name="id" value="${delivery.id}" />
            <table width="100%" border="0" cellpadding="8" cellspacing="0"
              class="tableBasic">
              <tr>
                <td width="100" align="right">收件人</td>
                <td>
                  <input type="text" name="deliveryName" value="${delivery.deliveryName}" size="40"
                    class="inpMain" />
                </td>
              </tr>
              <tr>
                <td width="100" align="right">快递公司</td>
                <td>
                  <select name="companyId">
                    <option value = >请选择</option>
                    <option value="1"  ${delivery.companyId eq 1 ? 'selected' : ''}> 申通快递</option>
                    <option value="2" ${delivery.companyId eq 2 ? 'selected' : ''}> 圆通快递</option>
                    <option value="3" ${delivery.companyId eq 3 ? 'selected' : ''}> 韵达快递</option>
                  </select>
                </td>
              </tr>
              <tr>
                <td width="100" align="right">手机号</td>
                <td>
                  <input type="text" size="40" name = "phone" value="${delivery.phone}"  class="inpMain" />
                </td>
              </tr>
              <tr>
                <td align="right">收货地址</td>
                <td>
                  <input type="text" name="adress" value="${delivery.address}" size="40"
                    class="inpMain" />
                </td>
              </tr>
              <tr>
                <td align="right">收货日期</td>
                <td>
                  <input type="text" name="sendTime" size="40" value="${delivery.sendTime}" class="inpMain"
                    placeholder="yyyy-MM-dd" />
                </td>
              </tr>
              <tr>
                <td align="right">收货状态</td>
                <td>
                  <input type="radio" name="state" size="40" value="1" ${delivery.state eq 1 ? 'checked' : ''}/> 已签收
                  <input type="radio" name="state" size="40" value="0" ${delivery.state eq 0 ? 'checked' : ''}/> 未签收
                </td>
              </tr>
              <tr>
                <td></td>
                <td>
                  <input type="submit" name="submit" class="btn" value="提交" />
                </td>
              </tr>
            </table>
          </form>
        </div>
      </div>
    <jsp:include page="flooter.jsp"></jsp:include>
<%--      <div class="clear"></div>--%>
<%--      <div id="dcFooter">--%>
<%--        <div id="footer">--%>
<%--          <div class="line"></div>--%>
<%--          <ul>--%>
<%--            版权所有 © 2024-2025 尚硅谷教育，并保留所有权利。--%>
<%--          </ul>--%>
<%--        </div>--%>
<%--      </div><!-- dcFooter 结束 -->--%>
<%--      <div class="clear"></div> </div>--%>
  </body>
</html>